package com.warthur.spring.shiro.pojo;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author warthur
 * @date 2018/09/08
 */
public class JwtToken implements AuthenticationToken {
    private static final long serialVersionUID = 3992141685013310002L;

    private String authorization;

    public JwtToken(String authorization) {
        this.authorization = authorization;
    }

    @Override
    public Object getPrincipal() {
        return authorization;
    }

    @Override
    public Object getCredentials() {
        return authorization;
    }
}
